

import { Button, Space, Toast } from 'antd-mobile'

export const ShowMsg = (msg = '提示') => {
  Toast.show({
    content: msg,
  })
}

export const ShowSuccessMsg = (msg = '成功') => {
  Toast.show({
    icon: 'success',
    content: msg,
  })
}

export const ShowErrorMsg = (msg = '失败') => {
  Toast.show({
    icon: 'fail',
    content: msg,
  })
}

export const ShowLoading = (msg = '等待中') => {
  Toast.show({
    icon: 'loading',
    content: msg,
  })
}
